/*
 * @Author: xiaosihan 
 * @Date: 2022-07-11 07:51:56 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2024-08-15 10:10:39
 */
import utils from "@utils";
import { Button } from "antd";
import homeRenderer from "./homeRender";
import styles from './index.module.less';

const Home = () => {


    // 下载实例模型数据
    const down = () => {
        homeRenderer.manyModelGroup.downloadData();
    }


    return (
        <div className={styles.home}>
            <div ref={dom => homeRenderer.setContainer(dom)} className={styles.container}></div>
            {
                utils.isDev &&
                <div className={styles.down}>
                    <Button onClick={() => homeRenderer.setDefaultLook()} >默认视角</Button>
                    <Button onClick={() => down()} >下载ManyModelData</Button>
                </div>
            }
        </div >
    );
}

export default Home;